#include <time.h>
#include <errno.h>
#include <stdint.h>

int __clock_gettime(clockid_t clk, struct timespec *ts)
{
    if (clk == CLOCK_REALTIME) {
        timespec_get(ts, TIME_UTC);
        return 0;
    }
    errno = EINVAL;
    return -1;
}

weak_alias(__clock_gettime, clock_gettime);
